package departure;

/**
 *
 * @author Casper, Dennis, Jackie, Jakob
 * @version 1.00
 */
public class Invoice {

    private String text;
    private int price;

    /**
     * Construtor adds a new line to the ArrayList
     */
    public Invoice() {
    }

    /**
     *
     * @param text
     * @param price
     */
    public Invoice(String text, int price) {
        this.price = price;
        this.text = text;
    }

    /**
     * Get the text for the line
     * @param index - index in the arraylist
     * @return The text
     */
    public String getText(){
        return text;
    }

    /**
     * Get the price for the line
     * @param index - Index in the arraylist
     * @return int - price
     */
    public int getPrice() {
        return price;
    }

    /**
     *
     * @param index
     * @return
     */
    @Override
    public String toString() {
        return getText() + " " + getPrice();
    }
}
